<?php if(!defined('APP_NAME')) exit; ?>
{__NOLAYOUT__}
<!doctype html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>系统后台 - <?php echo C('Basic.title'); ?></title>
        <link href="/statics/css/admin_login.css" rel="stylesheet" />
        <script>
            if (window.parent !== window.self) 
            {
                    document.write = '';
                    window.parent.location.href = window.self.location.href;
                    setTimeout(function () {
                            document.body.innerHTML = '';
                    }, 0);
            }
        </script>
    </head>
<body>
    <div class="wrap">
        <h1><a href="<?php echo U('Admin/Public/login'); ?>">cms-mine 后台管理中心</a></h1>
        <form method="post" action="<?php echo U('Admin/Public/login'); ?>">
            <div class="login">
                <ul>
                    <li>
                        <input class="input" name="username" type="text" placeholder="登录账号" title="登录账号" />
                    </li>
                    <li>
                        <input class="input" type="password" name="password" placeholder="密码" title="密码" />
                    </li>
                    <li>
                        <div>
                            <a id="verify_code_a" href="javascript:;" title="单击刷新验证码">
                                <img id="verify_code_img" src="<?php echo U('Admin/Public/captcha'); ?>" width="240" height="60">
                            </a>
                        </div>
                    </li>
                    <li>
                        <input class="input" type="text" name="verify_code" placeholder="请输入验证码" />
                    </li>
                </ul>
                <input type="submit" value="登录系统" class="btn">
            </div>
        </form>
    </div>
<script src="/statics/js/dev/jquery.js"></script>
<script>
$(function(){
    $('#verify_code_a').click(function(){
        var src = '<?php echo U('Admin/Public/captcha',array('t'=>'now')); ?>'.replace('now',Date.parse(new Date()));
        $('#verify_code_img').attr('src',src);
    });
});
</script>
</body>
</html>
